import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: "/",
    component: () => import('../views/index/index')
  },
  {
    path: "/roomtype",
    component: () => import('../views/roomtype/index')
  },
  {
    path: "/roomtype/input",
    component: () => import('../views/roomtype/input')
  },
  {
    path: "/room",
    component: () => import('../views/room/index')
  },
  {
    path: "/room/info",
    component: () => import('../views/room/info')
  },
  {
    path: "/room/input",
    component: () => import('../views/room/input')
  },
  {
    path: "/employee",
    component: () => import('../views/employee/index')
  },
  {
    path: "/employee/input",
    component: () => import('../views/employee/input')
  },
  {
    path: "/roomplan",
    component: () => import('../views/roomplan/index')
  },
  {
    path: "/roomplan/default",
    component: () => import('../views/roomplan/default')
  },
  {
    path: "/roomplan/price",
    component: () => import('../views/roomplan/price')
  },
  {
    path: "/business/reserve",
    component: () => import('../views/business/reserve')
  },
  {
    path: "/orderbill",
    component: () => import('../views/orderbill/index')
  },
  {
    path: "/business/checkin/:orderId",
    component: () => import('../views/business/checkin')
  },
	{
	  path: "/checkinfo",
	  component: () => import('../views/checkinfo/index')
	},
	{
	  path: "/chart",
	  component: () => import('../views/chart/index')
	}
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
